package com.itheima.objectDemo;

public class CloneDemo1 {
    public static void main(String[] args) throws CloneNotSupportedException {
        int[] data = {1,2,3,4,5};
        User usr1 = new User("zhangsan", "1234", 1, data);
        System.out.println(usr1);

        User usr2 = (User) usr1.clone();
        System.out.println(usr2);

        data[0] = 10;
        System.out.println(usr1);
        System.out.println(usr2);

    }
}
